#include<iostream>
using namespace std;

int main(){
	char a,b,c,d,e;
	cin >> a >> b >> c >> d >> e;
	cout << e << d << c << b << a;
	return 0;
}
